package com.example.schooldaka.service.impl;

import com.example.schooldaka.service.ApiService;
import com.example.schooldaka.util.LoginUtil;
import com.example.schooldaka.util.Result;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: SchoolDaKa
 * @description: 接口实现类
 * @author: Mr.Gui
 * @create: 2022-01-10 19:02
 **/
@Service
public class ApiServiceImpl implements ApiService {

    @SneakyThrows
    @Override
    public Result login(String username, String password,String address) {
        return LoginUtil.getLoginSession(username,password,address);
    }

}
